<template>
	<view class="review_box">
		<view class="review_box_item mb30" @click="goPage('/pages/indexhome/readg/readg')">
			<view class="review_box_item_img1">
				<image src="../../static/index/read_icon.png" mode=""></image>
			</view>
			<view class="mt30">跟读打分</view>
		</view>
		<view class="review_box_item mb30" @click="goPage('/pages/indexhome/writelx/writelx')">
			<view class="review_box_item_img2">
				<image src="../../static/index/write_icon.png" mode=""></image>
			</view>
			<view class="mt30">拼写练习</view>
		</view>
		<view class="review_box_item mb30" @click="goPage('/pages/indexhome/book/book')">
			<view class="review_box_item_img3">
				<image src="../../static/index/book_icon.png" mode=""></image>
			</view>
			<view class="mt30">识词冲关</view>
		</view>
		<view class="review_box_item mb30" @click="goPage('/pages/indexhome/hear/hear')">
			<view class="review_box_item_img4">
				<image src="../../static/index/hear_icon.png" mode=""></image>
			</view>
			<view class="mt30">听音辨意</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onBackPress(option) {
			if (option.from == 'navigateBack' || option.from == 'backbutton') {
				uni.reLaunch({
					url: '/pages/index/index'
				})
				return true
			}
			return false
		},
		methods: {
			goPage(page) {
				uni.navigateTo({
					url: '/pages/indexhome/select/select?route=' + page
				})
			}
		}
	}
</script>

<style lang="less">
	.review_box{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
		padding: 30rpx;
	}
	.review_box_item{
		width: 44%;
		height: 300rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		
	}
	.review_box_item_img1{
		width: 56rpx;
		height: 80rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.review_box_item_img2{
		width: 66rpx;
		height: 66rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.review_box_item_img3{
		width: 60rpx;
		height: 72rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.review_box_item_img4{
		width: 70rpx;
		height: 66rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}

</style>
